package Myfunction

import "github.com/gin-gonic/gin"

func Hello1(context *gin.Context) {
	//stu := Student{
	//	Name: "FAFA",
	//	Age:  12312,
	//}

	//stus := []Student{{
	//	Name: "12312",
	//	Age:  11,
	//},
	//	{
	//		Name: "213213",
	//		Age:  1234,
	//	},
	//	{
	//		Name: "123124",
	//		Age:  1231231,
	//	}}

	m := make(map[string]int, 3)
	m["丽丽"] = 10
	m["阿达"] = 13
	m["阿大"] = 15
	//context.HTML(200, "demo02.html", "我是传进来的数据")
	//context.HTML(200, "demo02.html", stu)
	context.HTML(200, "demo02.html", m)
}

type Student struct {
	Name string
	Age  int
}
